-
Notifications
You must be signed in to change notification settings - Fork 32
Check-in puma.rb #311
base: development
Are you sure you want to change the base?
Check-in puma.rb #311
Conversation
jsyeo
commented
Dec 8, 2014
|
||
# quiet | ||
threads 0, 30 | ||
bind 'unix://tmp/sockets/puma.sock' | ||
threads 10, 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to set so high. this might cause too many requests to be timesliced on one thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about min = 0, max = 10?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I know what's the "right" number? 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe for mine I used min=1, max=4... but you might wanna tweak this when you have instrumentation.
Don't daemonize. Don't create pids. Create sockets in /tmp
@@ -9,16 +9,12 @@ | |||
# end | |||
|
|||
environment 'production' | |||
daemonize true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is commented out?
If this is for our production, you need to check what we have in our production now. Otherwise push this could break things. |
Also, git ignore file currently ignores: /config/puma.rb |